package com.znsd.exam.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znsd.entitys.ExamSubjectMiddleInfo;
import com.znsd.entitys.SpecialtyInfo;
import com.znsd.exam.dao.ExamSpecialtyDao;
import com.znsd.exam.service.SpecialtyService;

@Service
public class ExamSpecialtyServiceImpl implements SpecialtyService{
	
	@Autowired
	private ExamSpecialtyDao specialtyDao;

	@Override
	public List<SpecialtyInfo> getCourseList() {
		return specialtyDao.getCourseList();
	}

	@Override
	public List<SpecialtyInfo> getChapterList(Integer cid) {
		return specialtyDao.getChapterList(cid);
	}

	@Override
	public List<SpecialtyInfo> getPointsList(Integer cid) {
		return specialtyDao.getPointsList(cid);
	}

	@Override
	public SpecialtyInfo getPointsListId(Integer cid) {
		return specialtyDao.getPointsListId(cid);
	}

	@Override
	public List<ExamSubjectMiddleInfo> getExamPaperWithSubject(ExamSubjectMiddleInfo esm) {
		return specialtyDao.getExamPaperWithSubject(esm);
	}

	@Override
	public int isAddESM(Map<String, Object> map) {
		return specialtyDao.isAddESM(map);
	}

	@Override
	public int removeSubjectWithExamPaper(Map<String, Object> map) {
		return specialtyDao.removeSubjectWithExamPaper(map);
	}

	@Override
	public Integer getEsmByExamIdWithSubjectId(ExamSubjectMiddleInfo esm) {
		return specialtyDao.getEsmByExamIdWithSubjectId(esm);
	}
	
}
